package com.lwt.service.api;

import com.github.pagehelper.PageInfo;
import com.lwt.entity.Admin;

import java.util.List;

/**
 * @Author Li Weitong
 * @Date 2021/1/13 22:01
 */
public interface AdminService {
    int saveAdmin(Admin admin);

    List<Admin> getAllAdmin();

    Admin getAdminByLoginAcct(String loginAcct, String userPswd);

    PageInfo<Admin> getPageInfo(String keyword,Integer pageNum,Integer pageSize);

    int remove(Integer adminId);

    Admin getAdminById(Integer adminId);

    int update(Admin admin);
}
